home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 July: Mac OS SDK / Dev.CD Jul 97 SDK1.toast / Development Kits (Disc 1) / Interfaces&Libraries / Interfaces / AIncludes / CMPRComponent.a < prev    next >
Encoding:
Text File  |  1996-01-24  |  3.2 KB  |  146 lines  |  [TEXT/MPS ]

  1. ;
  2. ;    File:        CMPRComponent.a
  3. ;
  4. ;    Contains:    ColorSync ProfileResponder Components Interface 
  5. ;
  6. ;    Version:    Technology:    ColorSync 2.0
  7. ;                Package:    Universal Interfaces 2.2 in “MPW” on ETO #20
  8. ;
  9. ;    Copyright:    © 1984-1995 by Apple Computer, Inc.
  10. ;                All rights reserved.
  11. ;
  12. ;    Bugs?:        If you find a problem with this file, use the Apple Bug Reporter
  13. ;                stack.  Include the file and version information (from above)
  14. ;                in the problem description and send to:
  15. ;                    Internet:    apple.bugs@applelink.apple.com
  16. ;                    AppleLink:    APPLE.BUGS
  17. ;
  18. ;
  19.  
  20.     IF &TYPE('__CMPRCOMPONENT__') = 'UNDEFINED' THEN
  21. __CMPRCOMPONENT__ SET 1
  22.  
  23.  
  24.     IF &TYPE('__TYPES__') = 'UNDEFINED' THEN
  25.     include 'Types.a'
  26.     ENDIF
  27. ;        include 'ConditionalMacros.a'                                ;
  28.  
  29.     IF &TYPE('__QUICKDRAW__') = 'UNDEFINED' THEN
  30.     include 'Quickdraw.a'
  31.     ENDIF
  32. ;        include 'MixedMode.a'                                        ;
  33. ;        include 'QuickdrawText.a'                                    ;
  34.  
  35.     IF &TYPE('__COMPONENTS__') = 'UNDEFINED' THEN
  36.     include 'Components.a'
  37.     ENDIF
  38.  
  39.     IF &TYPE('__CMAPPLICATION__') = 'UNDEFINED' THEN
  40.     include 'CMApplication.a'
  41.     ENDIF
  42. ;        include 'Files.a'                                            ;
  43. ;            include 'OSUtils.a'                                    ;
  44. ;                include 'Memory.a'                                    ;
  45. ;            include 'Finder.a'                                        ;
  46. ;        include 'Printing.a'                                        ;
  47. ;            include 'Errors.a'                                        ;
  48. ;            include 'Dialogs.a'                                    ;
  49. ;                include 'Menus.a'                                    ;
  50. ;                include 'Controls.a'                                ;
  51. ;                include 'Windows.a'                                ;
  52. ;                    include 'Events.a'                                ;
  53. ;                include 'TextEdit.a'                                ;
  54. ;        include 'CMICCProfile.a'                                    ;
  55.  
  56. CMPRInterfaceVersion            EQU        0
  57.  
  58. ; Component function selectors 
  59. kCMPRGetProfile                    EQU        0
  60. kCMPRSetProfile                    EQU        1
  61. kCMPRSetProfileDescription        EQU        2
  62. kCMPRGetIndexedProfile            EQU        3
  63. kCMPRDeleteDeviceProfile        EQU        4
  64.  
  65. ;
  66. ; pascal CMError CMGetProfile(ComponentInstance pr, CMProfileHandle aProfile, CMProfileHandle *returnedProfile)
  67. ;
  68.     IF ¬ GENERATINGCFM THEN
  69.         Macro
  70.         _CMGetProfile
  71.             dc.w     $2F3C
  72.             dc.w     $0008
  73.             dc.w     $0000
  74.             moveq    #0,d0
  75.             dc.w     $A82A
  76.         EndM
  77.     ELSE
  78.         IMPORT_CFM_FUNCTION    CMGetProfile
  79.     ENDIF
  80.  
  81. ;
  82. ; pascal CMError CMSetProfile(ComponentInstance pr, CMProfileHandle newProfile)
  83. ;
  84.     IF ¬ GENERATINGCFM THEN
  85.         Macro
  86.         _CMSetProfile
  87.             dc.w     $2F3C
  88.             dc.w     $0004
  89.             dc.w     $0001
  90.             moveq    #0,d0
  91.             dc.w     $A82A
  92.         EndM
  93.     ELSE
  94.         IMPORT_CFM_FUNCTION    CMSetProfile
  95.     ENDIF
  96.  
  97. ;
  98. ; pascal CMError CMSetProfileDescription(ComponentInstance pr, long DeviceData, CMProfileHandle hProfile)
  99. ;
  100.     IF ¬ GENERATINGCFM THEN
  101.         Macro
  102.         _CMSetProfileDescription
  103.             dc.w     $2F3C
  104.             dc.w     $0008
  105.             dc.w     $0002
  106.             moveq    #0,d0
  107.             dc.w     $A82A
  108.         EndM
  109.     ELSE
  110.         IMPORT_CFM_FUNCTION    CMSetProfileDescription
  111.     ENDIF
  112.  
  113. ;
  114. ; pascal CMError CMGetIndexedProfile(ComponentInstance pr, CMProfileSearchRecordHandle search, CMProfileHandle *returnProfile, long *index)
  115. ;
  116.     IF ¬ GENERATINGCFM THEN
  117.         Macro
  118.         _CMGetIndexedProfile
  119.             dc.w     $2F3C
  120.             dc.w     $000C
  121.             dc.w     $0003
  122.             moveq    #0,d0
  123.             dc.w     $A82A
  124.         EndM
  125.     ELSE
  126.         IMPORT_CFM_FUNCTION    CMGetIndexedProfile
  127.     ENDIF
  128.  
  129. ;
  130. ; pascal CMError CMDeleteDeviceProfile(ComponentInstance pr, CMProfileHandle deleteMe)
  131. ;
  132.     IF ¬ GENERATINGCFM THEN
  133.         Macro
  134.         _CMDeleteDeviceProfile
  135.             dc.w     $2F3C
  136.             dc.w     $0004
  137.             dc.w     $0004
  138.             moveq    #0,d0
  139.             dc.w     $A82A
  140.         EndM
  141.     ELSE
  142.         IMPORT_CFM_FUNCTION    CMDeleteDeviceProfile
  143.     ENDIF
  144.  
  145.     ENDIF ; __CMPRCOMPONENT__
  146.